<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class OnParentVersionAction</title>
			<link rel="stylesheet" href="../../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class OnParentVersionAction</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
											<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
						
			</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The possible actions specified by the onParentVersion attribute  in a <a href="../../phpContentRepository/Property.html">Property</a> definition within a <a href="../../phpContentRepository/Node.html">Node</a> type definition.</p>
<p class="description"><p>Level 2 only</p><p>This interface defines the following actions:  <ul><li><a href="../../phpContentRepository/Level2/OnParentVersionAction.html#constCOPY">COPY</a></li><li><a href="../../phpContentRepository/Level2/OnParentVersionAction.html#constVERSION">VERSION</a></li><li><a href="../../phpContentRepository/Level2/OnParentVersionAction.html#constINITIALIZE">INITIALIZE</a></li><li><a href="../../phpContentRepository/Level2/OnParentVersionAction.html#constCOMPUTE">COMPUTE</a></li><li><a href="../../phpContentRepository/Level2/OnParentVersionAction.html#constIGNORE">IGNORE</a></li><li><a href="../../phpContentRepository/Level2/OnParentVersionAction.html#constABORT">ABORT</a></li></ul></p><p>Every <a href="../../phpContentRepository/Item.html">Item</a> (<a href="../../phpContentRepository/Node.html">Node</a> or <a href="../../phpContentRepository/Property.html">Property</a>) in the repository has  a status indicator that governs what happens to that <a href="../../phpContentRepository/Item.html">Item</a> when its  parent <a href="../../phpContentRepository/Node.html">Node</a> is versioned. This status is defined by the  onParentVersion attribute in the <a href="../../phpContentRepository/PropertyDef.html">PropertyDef</a> or <a href="../../phpContentRepository/NodeDef.html">NodeDef</a> that  applies to the <a href="../../phpContentRepository/Item.html">Item</a> in question. This <a href="../../phpContentRepository/PropertyDef.html">PropertyDef</a> or  <a href="../../phpContentRepository/NodeDef.html">NodeDef</a> is part of the <a href="../../phpContentRepository/NodeType.html">NodeType</a> of the parent <a href="../../phpContentRepository/Node.html">Node</a>  of the <a href="../../phpContentRepository/Item.html">Item</a> in question.</p><p>For example, let N be a versionable <a href="../../phpContentRepository/Node.html">Node</a> in <a href="../../phpContentRepository/Workspace.html">Workspace</a> W of  repository R.  Furthermore, let N be of <a href="../../phpContentRepository/NodeType.html">NodeType</a> T, where T is a  sub-type of nt:versionable and T allows N to have one <a href="../../phpContentRepository/Property.html">Property</a> called  P and one child <a href="../../phpContentRepository/Node.html">Node</a> called C.</p><p>What happens to P and C when N is versioned depends on their respective  OnParentVersion attribute as defined in the <a href="../../phpContentRepository/PropertyDef.html">PropertyDef</a> for P and  the <a href="../../phpContentRepository/NodeDef.html">NodeDef</a> for C, found in the definition of <a href="../../phpContentRepository/NodeType.html">NodeType</a> T.</p><p>The possible values for the OnParentVersion attribute are: <a href="../../phpContentRepository/Level2/OnParentVersionAction.html#constCOPY">COPY</a>,  <a href="../../phpContentRepository/Level2/OnParentVersionAction.html#constVERSION">VERSION</a>, <a href="../../phpContentRepository/Level2/OnParentVersionAction.html#constINITIALIZE">INITIALIZE</a>, <a href="../../phpContentRepository/Level2/OnParentVersionAction.html#constCOMPUTE">COMPUTE</a>, NOTHING and  FORBIDDEN.</p><p>The sections below describe, for each possible value of the OnParentVersion  attribute, what happens to C and P when:</p><p><ul><li>N-&gt;checkin() is performed, creating the new version VN and adding
          to the version history.</li><li>N-&gt;restore(VN) is performed, restoring the version VN.</li></ul></p></p>
	<ul class="tags">
				<li><span class="field">copyright:</span> Copyright &amp;copy; 2004-2005, Domain51</li>
				<li><span class="field">author:</span> PHP - Travis Swicegood &lt;<a href="mailto:travis@domain51.net">travis@domain51.net</a>&gt;</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_version_OnParentVersionAction_class_php.html">/version/OnParentVersionAction.class.php</a> (line <span class="field">80</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>


	<a name="sec-const-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Class Constant Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
						<span class="disabled">Constants</span> (<a href="#sec-consts">details</a>)
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<div class="const-summary">
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#ABORT" title="details" class="const-name">ABORT</a> = 					<span class="var-type"> 6</span>

				</div>
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#ACTIONNAME_ABORT" title="details" class="const-name">ACTIONNAME_ABORT</a> = 					<span class="var-type"> &quot;ABORT&quot;</span>

				</div>
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#ACTIONNAME_COMPUTE" title="details" class="const-name">ACTIONNAME_COMPUTE</a> = 					<span class="var-type"> &quot;COMPUTE&quot;</span>

				</div>
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#ACTIONNAME_COPY" title="details" class="const-name">ACTIONNAME_COPY</a> = 					<span class="var-type"> &quot;COPY&quot;</span>

				</div>
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#ACTIONNAME_IGNORE" title="details" class="const-name">ACTIONNAME_IGNORE</a> = 					<span class="var-type"> &quot;IGNORE&quot;</span>

				</div>
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#ACTIONNAME_INITIALIZE" title="details" class="const-name">ACTIONNAME_INITIALIZE</a> = 					<span class="var-type"> &quot;INITIALIZE&quot;</span>

				</div>
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#ACTIONNAME_VERSION" title="details" class="const-name">ACTIONNAME_VERSION</a> = 					<span class="var-type"> &quot;VERSION&quot;</span>

				</div>
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#COMPUTE" title="details" class="const-name">COMPUTE</a> = 					<span class="var-type"> 4</span>

				</div>
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#COPY" title="details" class="const-name">COPY</a> = 					<span class="var-type"> 1</span>

				</div>
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#IGNORE" title="details" class="const-name">IGNORE</a> = 					<span class="var-type"> 5</span>

				</div>
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#INITIALIZE" title="details" class="const-name">INITIALIZE</a> = 					<span class="var-type"> 3</span>

				</div>
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#VERSION" title="details" class="const-name">VERSION</a> = 					<span class="var-type"> 2</span>

				</div>
							</div>
		</div>
	</div>


	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
							
									<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
								
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#nameFromValue" title="details" class="method-name">nameFromValue</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$action</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">int</span>
										<a href="#valueFromName" title="details" class="method-name">valueFromName</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>)
									</div>
							</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																		<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
							
										<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodnameFromValue" id="nameFromValue"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">nameFromValue</span> (line <span class="line-number">339</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the name of the specified $action, as used in serialization.</p>
	<ul class="tags">
				<li><span class="field">return:</span> The name of the specified $action</li>
				<li><span class="field">access:</span> public</li>
				<li><span class="field">static:</span> </li>
				<li><span class="field">throws:</span> IllegalArgumentException    If $action is not a valid on-version action.</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			nameFromValue
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$action</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$action</span><span class="var-description">: The on-version action.  See class constants.</span>			</li>
				</ul>
		
		
	</div>
<a name="methodvalueFromName" id="valueFromName"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">valueFromName</span> (line <span class="line-number">388</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the numeric constant value of the on-version action with the  specified name.</p>
	<ul class="tags">
				<li><span class="field">return:</span> The numeric constant value</li>
				<li><span class="field">access:</span> public</li>
				<li><span class="field">static:</span> </li>
				<li><span class="field">throws:</span> IllegalArgumentException    If $name is not a valid on-version action name.</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">int</span>
		<span class="method-name">
			valueFromName
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$name</span><span class="var-description">: The name of the on-version action</span>			</li>
				</ul>
		
		
	</div>
						
		</div>
	</div>

	<a name="sec-consts"></a>
	<div class="info-box">
		<div class="info-box-title">Class Constants</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Constants</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<a name="constABORT" id="ABORT"><!-- --></A>
<div class="evenrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">ABORT</span>
			 = <span class="const-default"> 6</span>
			(line <span class="line-number">262</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Defines the integer value of a ABORT action for a parent versioning  event.</p>
<p class="description"><p>See OnParentVersion for a full explanation of the scenario under  which these two events could possibly play out.</p><p>Child <a href="../../phpContentRepository/Node.html">Node</a> or <a href="../../phpContentRepository/Property.html">Property</a></p><p>On checkin of N an exception will be thrown. Having a child <a href="../../phpContentRepository/Node.html">Node</a>  or <a href="../../phpContentRepository/Property.html">Property</a> with an OnParentVersion attribute of  OnParentVersion::ABORT prevents the parent <a href="../../phpContentRepository/Node.html">Node</a> from  being checked-in.</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../phpContentRepository/Level2/OnParentVersionAction.html#constACTIONNAME_ABORT">OnParentVersionAction::ACTIONNAME_ABORT</a></li>
			</ul>
	
	
</div>
<a name="constACTIONNAME_ABORT" id="ACTIONNAME_ABORT"><!-- --></A>
<div class="oddrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">ACTIONNAME_ABORT</span>
			 = <span class="const-default"> &quot;ABORT&quot;</span>
			(line <span class="line-number">316</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The plain-text name of ABORT</p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../phpContentRepository/Level2/OnParentVersionAction.html#constABORT">OnParentVersionAction::ABORT</a></li>
			</ul>
	
	
</div>
<a name="constACTIONNAME_COMPUTE" id="ACTIONNAME_COMPUTE"><!-- --></A>
<div class="evenrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">ACTIONNAME_COMPUTE</span>
			 = <span class="const-default"> &quot;COMPUTE&quot;</span>
			(line <span class="line-number">298</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The plain-text name of COMPUTE</p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../phpContentRepository/Level2/OnParentVersionAction.html#constCOMPUTE">OnParentVersionAction::COMPUTE</a></li>
			</ul>
	
	
</div>
<a name="constACTIONNAME_COPY" id="ACTIONNAME_COPY"><!-- --></A>
<div class="oddrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">ACTIONNAME_COPY</span>
			 = <span class="const-default"> &quot;COPY&quot;</span>
			(line <span class="line-number">271</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The plain-text name of COPY</p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../phpContentRepository/Level2/OnParentVersionAction.html#constCOPY">OnParentVersionAction::COPY</a></li>
			</ul>
	
	
</div>
<a name="constACTIONNAME_IGNORE" id="ACTIONNAME_IGNORE"><!-- --></A>
<div class="evenrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">ACTIONNAME_IGNORE</span>
			 = <span class="const-default"> &quot;IGNORE&quot;</span>
			(line <span class="line-number">307</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The plain-text name of IGNORE</p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../phpContentRepository/Level2/OnParentVersionAction.html#constIGNORE">OnParentVersionAction::IGNORE</a></li>
			</ul>
	
	
</div>
<a name="constACTIONNAME_INITIALIZE" id="ACTIONNAME_INITIALIZE"><!-- --></A>
<div class="oddrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">ACTIONNAME_INITIALIZE</span>
			 = <span class="const-default"> &quot;INITIALIZE&quot;</span>
			(line <span class="line-number">289</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The plain-text name of INITIALIZE</p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../phpContentRepository/Level2/OnParentVersionAction.html#constINITIALIZE">OnParentVersionAction::INITIALIZE</a></li>
			</ul>
	
	
</div>
<a name="constACTIONNAME_VERSION" id="ACTIONNAME_VERSION"><!-- --></A>
<div class="evenrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">ACTIONNAME_VERSION</span>
			 = <span class="const-default"> &quot;VERSION&quot;</span>
			(line <span class="line-number">280</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The plain-text name of VERSION</p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../phpContentRepository/Level2/OnParentVersionAction.html#constVERSION">OnParentVersionAction::VERSION</a></li>
			</ul>
	
	
</div>
<a name="constCOMPUTE" id="COMPUTE"><!-- --></A>
<div class="oddrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">COMPUTE</span>
			 = <span class="const-default"> 4</span>
			(line <span class="line-number">216</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Defines the integer value of a COMPUTE action for a parent versioning  event.</p>
<p class="description"><p>See OnParentVersion for a full explanation of the scenario under  which these two events could possibly play out.</p><p>Child <a href="../../phpContentRepository/Node.html">Node</a></p><p>On checkin of N, a new <a href="../../phpContentRepository/Node.html">Node</a> C will be created and placed in  version storage as a child of VN.  This new C will be initialized  according to some configuration-specific procedure beyond the scope of  this specification. The new C will not have its own version history but  will be part of the state preserved in VN.  C itself need not be  versionable.</p><p>On restore of VN, the C stored as its child will be restored as well,  replacing the current C in the <a href="../../phpContentRepository/Workspace.html">Workspace</a>.</p><p><a href="../../phpContentRepository/Property.html">Property</a></p><p>On checkin of N, a new P will be created and placed in version storage as  a child of VN. The new P will be initialized according to some  configuration-specific procedure beyond the scope of this specification.  The new P is part of the state preserved in VN.</p><p>On restore of VN, the P stored as its child will be restored as well,  replacing the current P in the <a href="../../phpContentRepository/Workspace.html">Workspace</a>.</p></p>
	
	
</div>
<a name="constCOPY" id="COPY"><!-- --></A>
<div class="evenrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">COPY</span>
			 = <span class="const-default"> 1</span>
			(line <span class="line-number">111</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Defines the integer value of a COPY action for a parent versioning event.</p>
<p class="description"><p>See OnParentVersion for a full explanation of the scenario under  which these two events could possibly play out.</p><p>Child <a href="../../phpContentRepository/Node.html">Node</a></p><p>On checkin of N, C and all its descendent <a href="../../phpContentRepository/Item.html">Item</a>s, down to the  leaves of the subtree, will be copied to the version storage as a child  subtree of VN. The copy of C and its subtree will not have its own  version history but will be part of the state preserved in VN.  C itself  need not be versionable.</p><p>On restore of VN, the copy of C and its subtree stored will be restored  as well, replacing the current C and its subtree in the <a href="../../phpContentRepository/Workspace.html">Workspace</a>.</p><p><a href="../../phpContentRepository/Property.html">Property</a></p><p>On checkin of N, P will be copied to the version storage as a child of VN.  This copy of P is part of the state preserved in VN.</p><p>On restore of VN, the copy of P stored as its child will be restored as  well, replacing the current P in the <a href="../../phpContentRepository/Workspace.html">Workspace</a>.</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../phpContentRepository/Level2/OnParentVersionAction.html#constACTIONNAME_COPY">OnParentVersionAction::ACTIONNAME_COPY</a></li>
			</ul>
	
	
</div>
<a name="constIGNORE" id="IGNORE"><!-- --></A>
<div class="oddrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">IGNORE</span>
			 = <span class="const-default"> 5</span>
			(line <span class="line-number">242</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Defines the integer value of a IGNORE action for a parent versioning  event.</p>
<p class="description"><p>Child <a href="../../phpContentRepository/Node.html">Node</a></p><p>On checkin of N, no state information about C will be stored in VN.</p><p>On restore of VN, the child <a href="../../phpContentRepository/Node.html">Node</a> C of the current N will remain  and not be removed, despite not being included in the state recorded in  VN, since its IGNORE status tells the system to leave it alone.</p><p><a href="../../phpContentRepository/Property.html">Property</a></p><p>On checkin of N, no state information about P will be stored in VN.</p><p>On restore of VN, the <a href="../../phpContentRepository/Property.html">Property</a> P of the current N will remain and  not be removed, despite not being included in the state of recorded in  VN, since its IGNORE status tells the system to leave it alone.</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../phpContentRepository/Level2/OnParentVersionAction.html#constACTIONNAME_IGNORE">OnParentVersionAction::ACTIONNAME_IGNORE</a></li>
			</ul>
	
	
</div>
<a name="constINITIALIZE" id="INITIALIZE"><!-- --></A>
<div class="evenrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">INITIALIZE</span>
			 = <span class="const-default"> 3</span>
			(line <span class="line-number">184</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Defines the integer value of a INITIALIZE action for a parent versioning  event.</p>
<p class="description"><p>See OnParentVersion for a full explanation of the scenario under  which these two events could possibly play out.</p><p>Child <a href="../../phpContentRepository/Node.html">Node</a></p><p>On checkin of N, a new <a href="../../phpContentRepository/Node.html">Node</a> C will be created and placed in  version storage as a child of VN.  This new C will be initialized just as  it would be if created normally in a <a href="../../phpContentRepository/Workspace.html">Workspace</a>. No state  information of the current C in the <a href="../../phpContentRepository/Workspace.html">Workspace</a> is preserved. The  new C will not have its own version history but will be part of the state  preserved in VN. C itself need not be versionable.</p><p>On restore of VN, the C stored as its child will be restored as well,  replacing the current C in the <a href="../../phpContentRepository/Workspace.html">Workspace</a>.</p><p><a href="../../phpContentRepository/Property.html">Property</a></p><p>On checkin of N, a new P will be created and placed in version storage  as a child of VN. The new P will be initialized just as it would be if  created normally in a <a href="../../phpContentRepository/Workspace.html">Workspace</a>. The new P is part of the state  preserved in VN.</p><p>On restore of VN, the P stored as its child will be restored as well,  replacing the current P in the <a href="../../phpContentRepository/Workspace.html">Workspace</a>.</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../phpContentRepository/Level2/OnParentVersionAction.html#constACTIONNAME_INITIALIZE">OnParentVersionAction::ACTIONNAME_INITIALIZE</a></li>
			</ul>
	
	
</div>
<a name="constVERSION" id="VERSION"><!-- --></A>
<div class="oddrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">VERSION</span>
			 = <span class="const-default"> 2</span>
			(line <span class="line-number">149</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Defines the integer value of a VERSION action for a parent versioning  event.</p>
<p class="description"><p>See OnParentVersion for a full explanation of the scenario under  which these two events could possibly play out.</p><p>Child <a href="../../phpContentRepository/Node.html">Node</a></p><p>On checkin of N, the <a href="../../phpContentRepository/Node.html">Node</a> VN will get a child reference to the  version history of C (not to C or any actual version of C). In practice,  this means that the root version of C's version history becomes the  child of VN because, as mentioned before, the root version is used as the  referent when a reference to the version history as a whole is required.  This also requires that C itself be versionable (otherwise it would not  have a version history). If C is not versionable then behavior of IGNORE  applies on checkin (see below).</p><p>On restore of VN, if the <a href="../../phpContentRepository/Workspace.html">Workspace</a> currently has an already  existing <a href="../../phpContentRepository/Node.html">Node</a> corresponding to C's version history, then that  instance of C becomes the child of the restored N. If the  <a href="../../phpContentRepository/Workspace.html">Workspace</a> does not have an instance of C then one is restored  from C's version history. The <a href="../../phpContentRepository/Workspace.html">Workspace</a> in which the restore is  being performed will determine which particular version of C will be  restored. This determination depends on the configuration of the  <a href="../../phpContentRepository/Workspace.html">Workspace</a> and is outside the scope of this specification.</p><p><a href="../../phpContentRepository/Property.html">Property</a></p><p>In the case of <a href="../../phpContentRepository/Property.html">Property</a>s, an OnParentVersion attribute of VERSION  has the same effect as COPY.</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../phpContentRepository/Level2/OnParentVersionAction.html#constACTIONNAME_VERSION">OnParentVersionAction::ACTIONNAME_VERSION</a></li>
			</ul>
	
	
</div>
						
		</div>
	</div>

	<p class="notes" id="credit">
		Documentation generated on Fri, 31 Dec 2004 10:15:18 -0600 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.0RC3</a>
	</p>
	</div></body>
</html>